clear (someone's) cobwebs

Translations
se remettre les idées en place
Definitions
To refresh someone's mind or make them feel more alert, often by engaging in a stimulating activity or getting fresh air; it can also mean to help someone overcome confusion or mental sluggishness.